package com.mxpio.erp.common;

import org.springdoc.core.GroupedOpenApi;
import org.springframework.boot.autoconfigure.AutoConfigurationPackage;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@AutoConfigurationPackage
@ComponentScan
public class CommonConfiguration {

	@Bean
    public GroupedOpenApi erpApi() {
        return GroupedOpenApi.builder()
                .group("erp")
                .packagesToScan("com.mxpio.erp")
                .build();
    }
}
